Skip to content

Fix Codex quota lookup for user-local CLI installs#4

Open
0xWinner98 wants to merge 1 commit into
Backtthefuture:mainfrom
0xWinner98:fix-codex-cli-path-resolution
Open

Fix Codex quota lookup for user-local CLI installs#4
0xWinner98 wants to merge 1 commit into
Backtthefuture:mainfrom
0xWinner98:fix-codex-cli-path-resolution

Conversation

@0xWinner98

Copy link
Copy Markdown

Summary

  • Resolve the Codex executable before launching the quota app-server, instead of relying on GUI app PATH alone.
  • Add user-local fallback directories such as ~/.local/bin and the standalone Codex install path.
  • Add a fixture check and wire it into CI so GUI PATH regressions are covered.

Why

macOS menu bar apps do not inherit a user shell PATH. When Codex is installed under a user-local path such as ~/.local/bin/codex, TokenStep can collect local usage metadata but fails to launch codex app-server for quota lookup, so the Agent quota panel stays empty even though Codex is installed and signed in.

Validation

  • script/test_codex_executable_resolver.sh
  • script/test_ccswitch_proxy_collector.sh
  • script/build_swiftui_and_run.sh --no-launch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant